package com.dotto.atos.models;

import org.json.JSONObject;

public class Branch {

	private int id;
	private String name;
	private int cityId;
	private City city;

	public Branch() {

	}

	public Branch(JSONObject obj) {
		if (obj != null) {
			this.id = obj.optInt("id");
			this.name = obj.optString("ilce");
			this.cityId=obj.optInt("il");
		}
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getCityId() {
		return cityId;
	}

	public void setCityId(int cityId) {
		this.cityId = cityId;
	}

	public City getCity() {
		return city;
	}

	public void setCity(City city) {
		this.city = city;
	}

}
